package com.example.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.entity.dto.StoreImage;
import jakarta.servlet.ServletOutputStream;
import org.springframework.web.multipart.MultipartFile;
import java.io.IOException;

/**
 * @Author: shenjianZ
 * @Date: 2024/4/29 下午2:55
 * @Description:
 */


public interface ImageService extends IService<StoreImage> {

    String uploadAvatar(MultipartFile file, int id) throws IOException;


    void fetchImageFromMinio(ServletOutputStream outputStream, String imagePath) throws Exception;

    String uploadImage(MultipartFile file, int id) throws IOException;
}
